export const PAGE = {
	onLoad(options) {
		const app = getApp()
		app.init().finally(() => {
			if (this.init) {
				this.init(options)
			} else {
				this.loadData()
			}
		})
	},
	onShow() {
		this.showData && this.showData()
	},
	onPullDownRefresh() {
		let page = getCurrentPages()
		let options = page[page.length - 1].options
		if (this.reset) {
			this.reset()
		}
		this.onLoad(options)
		uni.stopPullDownRefresh();
	}
}